package com.hyz.assetInbound.controller;

import com.hyz.assetInbound.pojo.AssetInbound;
import com.hyz.assetInbound.service.AssetInboundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author HGD
 * @date 2022/9/29 14:03
 */
@RestController
@RequestMapping("/assetInbound")
public class AssetInboundController {
    @Autowired
    private AssetInboundService assetInboundService;

    @PostMapping("/batchInbound")
    public boolean batchInbound(@RequestBody List<AssetInbound> list) {
        return assetInboundService.batchInbound(list);
    }

}
